package org.senseframework.support.open.api.service;

/**
 * lanjian on 2014/7/18.
 */
public class ApiDefinition {

    public static final Integer ENCYTPT_EROOR = 40003;

    public static final Integer PASSWORD_ERROR_CODE = 101;
    public static final Integer BUSINESS_ERROR_CODE = 801;

    public static final Integer CP_STATUS_ERROR = 802;
    public static final Integer VALIDATE_CODE_ERROR = 803;
    public static final Integer UNSUPPORTED_OPER = 804;

    public static final Integer INIT_ERROR_INVALID_INFO = 805;

    public static final Integer APP_ERROR_CLOSED = 806;

    public static final Integer USER_EXIST_CODE = 102;
    public static final Integer CHECK_LOGIN_FAIL = 103;

    public final static Integer SUCCESS_CODE = 0;

    public final static Integer UPLOAD_SUCCESS_CODE = 201;

    public final static Integer FORBIDDEN_ERROR_CODE = 403;

    public final static Integer FORBIDDEN_TIME_OUT_ERROR_CODE = 407;

    public final static Integer NO_DATA_CODE = 404;

    public final static Integer DOUBLE_CODE = 405;
    public final static Integer LOGIN_TOKEN_INVALIDATE = 406;


    public final static Integer FAIL_CODE = 500;

    public static final Integer UPLOAD_ERROR_CODE = 501;

    public static final Integer TIMEOUT_CODE = 502;

    public static final Integer INVALID_BIND_CODE = 503;


    public static final Integer VALIDATE_LENGTH_CODE = 601;

    public static final Integer VALIDATE_NOT_NULL_CODE = 602;

    public static final Integer VALIDATE_PATTERN_CODE = 603;

    public static final int SENSITIVE_KEYWORD_CODE = 604;

    public final static String STATUS_KEY = "status";

    public final static String EXTEND_KEY = "extend";

    public final static String MESSAGE_KEY = "message";

    public final static String SALT_KEY = "salt";

    public final static String BODY_KEY = "body";

    public final static String FAIL_DEFAULT_MESSAGE = "fail";

    public final static String FORBIDDEN_DEFAULT_MESSAGE = "token_forbidden";
    public final static String LOGIN_TOKEN_INVALDATE_MESSAGE = "login_token_forbidden";

    public final static String TIMEOUT_DEFAULT_MESSAGE = "timeout";

    public final static String SUCCESS_DEFAULT_MESSAGE = "success";

    public final static String NO_SERVICE_MESSAGE = "no service";
}
